package server;

import java.rmi.*;   
  
public interface PersonInterface extends Remote   
{   
	public String getName(int id) throws RemoteException;
	public String getSex(int id) throws RemoteException;
	public double getCash(int id) throws RemoteException;
	public String getJob(int id) throws RemoteException;
	public int getComID(int id) throws RemoteException;

	public int getHp(int id) throws RemoteException;
	public int getHap(int id) throws RemoteException;
	public int getExp(int id) throws RemoteException;
	public boolean setExp(int id,int cExp)throws RemoteException;
	
	public int getBankAccountID(int id) throws RemoteException;
	public boolean setBankAccountID(int id,int bankAccountID) throws RemoteException;
	public double getBankBalance(int id) throws RemoteException;
	public boolean setComID(int id,int comID)throws RemoteException;
	
	public boolean cashChanges(int id,double cCash,char a) throws RemoteException;
	public boolean apply(int id,String cJob) throws RemoteException;

	public boolean hapChanges(int id,int cHap,char a) throws RemoteException;
	public boolean hpChanges(int id,int cHp,char a) throws RemoteException;
	public boolean expChanges(int id,int cExp,char a) throws RemoteException;

   
	public int loginConfirm(String username,String password) throws RemoteException;
	public boolean hasName(String username)  throws RemoteException;
	public int reg(String username,String password,String name,String sex) throws RemoteException;
	public int getSize()  throws RemoteException;
}   